may 2015 docid025531 rev 5 1/46 UM1695 user manual command set reference guide for "at full stack" for spwf01sx series of wi-fi modules introduction this document is a guide to the ?at full stack? command set, a firmware application embedded in the spwf01sx series of wi-fi modules. the ?at full stack? command set is a user-friendly interface of a complete tcp/ip stack supporting both direct links with wi-fi enable d devices and infrastructure communication modes with an access point. a pplication utilities such as an ht tp client and a web server are also featured in the softwa re to allow easy integratio n with many internet-based applications. this document provides a detailed description of each command supported by the ?at full stack? interface. a description and explanation of configuration variables, status variables and asynchronous indication messages are also integrated into the document, respectively, in chapter 3 , 4 and 5 . www.st.com
contents UM1695 2/46 docid025531 rev 5 contents 1 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2 command reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.1 at: attention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.2 at+cfun: comm function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.3 at+s.help: display help text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.4 at+s.gcfg: get configuration value . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.5 at+s.scfg: set configuration value . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.6 at+s.ssidtxt: get/set a textual ssid . . . . . . . . . . . . . . . . . . . . . . . . . . .11 2.7 at&v: display all configuration values . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 2.8 at&f: restore factory default settings . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.9 at&w: save current settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.10 at+s.sts: report current status/statistics . . . . . . . . . . . . . . . . . . . . . . . . 14 2.11 at+s.peers: dump contents of the peer table . . . . . . . . . . . . . . . . . . . . 15 2.12 at+s.ping: send a ping to a specified host . . . . . . . . . . . . . . . . . . . . . . 16 2.13 at+s.sockon: open a network socket . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.14 at+s. sockw: write len bytes of data to socket . . . . . . . . . . . . . . . . . . . 17 2.15 at+s.sockq: query pending data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 2.16 at+s. sockr: return len bytes of data from socket . . . . . . . . . . . . . . . . 17 2.17 at+s.sockc: close socket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.18 at+s.tlscert: configure ssl/tls certificates . . . . . . . . . . . . . . . . . . . 18 2.19 at+s.tlscert2: cleanup ssl/tls certificate resources . . . . . . . . . . . 18 2.20 at+s.tlsdomain: set ca domain name. it must match the secured site name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.21 at+s.settime: initiate module reference time . . . . . . . . . . . . . . . . . . . . 19 2.22 at+s.sockd: enable/disable the socket server . . . . . . . . . . . . . . . . . . . 19 2.23 at+s.: command mode to data mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.24 at+s.httpget: issue an http get . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 2.25 at+s.httppost: issue an http post . . . . . . . . . . . . . . . . . . . . . . . . 21 2.26 at+s.fsc: create a file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 2.27 at+s.fsa: append to an existing file . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
docid025531 rev 5 3/46 UM1695 contents 46 2.28 at+s.fsd: delete an existing file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 2.29 at+s.fsl: list existing filename(s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 2.30 at+s.fsp: print the contents of an existing file . . . . . . . . . . . . . . . . . . . . 24 2.31 at+s.wifi: enable/disable wi-fi device . . . . . . . . . . . . . . . . . . . . . . . . . 24 2.32 at+s.roam: trigger wi-fi reassociation sequence . . . . . . . . . . . . . . . . 24 2.33 at+s.gpioc: configure general purpose inputs/outputs . . . . . . . . . . . . . 25 2.34 at+s.gpior: query general purpose input . . . . . . . . . . . . . . . . . . . . . . . 25 2.35 at+s.gpiow: set general purpose output . . . . . . . . . . . . . . . . . . . . . . . 26 2.36 at+s.fwupdate: perform a firmware update . . . . . . . . . . . . . . . . . . . . 26 2.37 at+s.httpdfsupdate: update static httpd filesystem . . . . . . . . . . 27 2.38 at+s.httpdfserase: erase the external flash memory . . . . . . . . . . . 27 2.39 at+s.httpd: disable/enable web server . . . . . . . . . . . . . . . . . . . . . . . . 27 2.40 at+s.scan: perform site survey (scan) . . . . . . . . . . . . . . . . . . . . . . . . . 28 2.41 at+s.adc: read adc value on gpio8 . . . . . . . . . . . . . . . . . . . . . . . . . 29 2.42 at+s.dac: enable/disable dac on gpio15 . . . . . . . . . . . . . . . . . . . . . . 29 2.43 at+s.pwm: set pwm on gpio1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3 configuration variable reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 4 status variable reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 5 asynchronous indication referen ce . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 6 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
overview UM1695 4/46 docid025531 rev 5 1 overview the ?at full stack? command interface described in this user guide consists of a set of: ? at-style commands, ? configuration variables, ? status variables, and ? asynchronous indications (also known as unsolicited responses or winds). the communication of commands, variables, and asynchronous indications is executed via the serial port and implies the integration of the spwf01sx modules with a host processor as indicated in figure 1 . figure 1. spwf01s integration with an host processor asynchronous indications may arrive at any time (except as noted below), and have the format: +wind:: the field of each asynchronous indica tion type is unique. the descriptive string may be safely ignored. immediately after reset, no commands should be sent and only asynchronous indications are present until the indication ?+wind :0:console active? is received. after wind:0 is received, at commands may be sent to the spwf device. at commands are alwa ys in the form of: at the at command line, up to the terminating , is sent from the host. the (optional) response lines followed by are sent from the module. the is one of the following: ok error: the at command handler allows for the at commands to be entered in upper or lower case. uart at commands conf. variables status variables asynchronous indications host (stm32/stm8)
docid025531 rev 5 5/46 UM1695 overview 46 command arguments are case sensitive. the maximum command length is 512 characters. note that asynchronous indications are blocked from the time the initia l ?a? is sent to the module until the line is sent. any indications generated from events during the processing of an at command are queued for delivery after the command is complete.
command reference UM1695 6/46 docid025531 rev 5 2 command reference this chapter details each of the at commands including brief descriptions of the behavior, syntax of the command, example of use and types of responses. the commands described are those listed in table 1 . table key: ? s: command is supported in this release ? ns: command is not supported in this release ? new: command is introdu ced with this release ? deprecated: command is deprecated in this release table 1. at command list summary ?at full stack? commands rel. 1.0 rel. 2.0 rel. 3.3 rel. 3.4 at ssss at+cfun s s s (1) s at+s.help s s s s at+s.gcfg s s s s at+s.scfg s s s s at+s.ssidtxt s s s s at&v ssss at&f ssss at&w ssss at+s.nvw s s deprecated ns at+s.sts ssss at+s.peers - new s s at+s.ping s s s s at+s.sockon s s s s at+s.sockos s s deprecated (2) ns at+s.sockw ssss at+s.sockq ssss at+s.sockr ssss at+s.sockc ssss at+s.sockd - - new s at+s. - - new s at+s.httpget s s s s at+s.httppost - new s s at+s.fsc ssss
docid025531 rev 5 7/46 UM1695 command reference 46 the following subsections cover each at command in detail. 2.1 at: attention at, by itself, is a null command that always return s an ok result code. it is useful for testing the module interface for readiness. arguments: none example: at+s.fsa ssss at+s.fsd ssss at+s.fsl ssss at+s.fsp ssss at+s.mfgtest s s deprecated ns at+s.pemdata s s deprecated ns at+s.wifi s s s s at+s.roam s s s s at+s.gpioc ssss at+s.gpior ssss at+s.gpiow ssss at+s.fwupdate (3) ssss at+s.httpdfsupdate (3) ssss at+s.httpdfserase (3) --news at+s.httpd - - new s at+s.scan - new s s at+s.adc ---new at+s.dac ---new at+s.pwm ---new at+s.tlscert ---new at+s.tlscert2 - - - new at+s.tlsdomain ---new at+s.settime ---new 1. extended to manage low power configuration modes 2. the use of uart 2 and uart 3 interfaces is disabled 3. command only supported on the hw versions spwf01sx.11 table 1. at command list summary (continued) ?at full stack? commands rel. 1.0 rel. 2.0 rel. 3.3 rel. 3.4
command reference UM1695 8/46 docid025531 rev 5 at ok 2.2 at+cfun: comm function at+cfun sets a power mode with default values as it is indicated in the table 2 and includes a reset of the device. arguments: example: at+cfun=1 +wind:2:reset 2.3 at+s.help: di splay help text at+s.help prints a list of all commands supported with a brief help text for each command. arguments: 0 = switch to the active state and reset the device 1 = keep the current state and reset the device 2 = switch to the powersave state and reset the device 3 = switch to the sleep state and reset the device 4 = switch to the standby mode and reset the device table 2. power states default configuration module states shortcut command stm32 states wlan states at variables default values active cfun 0 run rx idle rx active tx active at+s.scfg=sleep_enabled,0 at+s.scfg=wifi_powersave,0 at+s.scfg=standby_enabled,0 power save cfun 2 run ps or fast ps at+s.scfg=sleep_enabled,0 at+s.scfg=wifi_powersave,1 at+s.scfg=wifi_operational_mode,11 at+s.scfg=wifi_beacon_wakeup,1 at+s.scfg=wifi_listen_interval,0 sleep cfun 3 stop ps or fast ps at+s.scfg=sleep_enabled,1 at+s.scfg=wifi_powersave,1 at+s.scfg=wifi_operational_mode,11 at+s.scfg=wifi_beacon_wakeup,1 at+s.scfg=wifi_listen_interval,0 standby cfun 4 standby standby at+s.scfg=standby_enabled,1 at+s.scfg=standby_time,10 at+s.scfg=sleep_enabled,0
docid025531 rev 5 9/46 UM1695 command reference 46 none example: at+s.help # recognized commands # at -- null cmd, always returns ok # at+cfun =<0|1|2|3|4> -- enable common functionalities # at+s. -- switch to data mode # at+s.help -- this text # at&f -- restore factory default settings # at&v -- dump all settings # at&w -- save current settings to flash # at+s.gcfg = -- get config key # at+s.scfg =, -- set config key # at+s.sts [=] -- report current status/statistics # at+s.settime = -- set current time # at+s.fsc =,[,] -- create a file for httpd use # at+s.fsa =, -- append to an existing file # at+s.fsd = -- delete an existing file # at+s.fsl -- list existing filename(s) # at+s.fsp =[,,] -- print the contents of an existing file # at+s.gpioc =,[,<0|r|f|b>] -- configure specified gpio [optional irq] # at+s.gpior = -- read specified gpio # at+s.gpiow =, -- write specified gpio # at+s.dac =<0|value> -- disable/enable dac on gpio15 # at+s.adc [=raw] -- read [raw] adc value on gpio8 # at+s.pwm =frequency[,duty_cycle] -- set pwm on gpio1 # at+s.wifi =<0|1> -- disable/enable wifi # at+s.roam -- trigger a wifi roam # at+s.scan [=,] -- perform a scan ,. default is active,filter on # at+s.ssidtxt [=] -- set a textual ssid (not hex), otherwise prints current ssid # at+s.peers [=peer_number[,peer_var]] -- dump contents of the peer table # at+s.tlscert =, -- configure ssl/tls certificates # at+s.tlscert2 =clean, -- cleanup ssl/tls certificates resources # at+s.tlsdomain =, -- set ca domain name. it must match the secured site name exactly. # at+s.sockd =<0|port>[,] -- disable/enable socket server. default is tcp # at+s.sockon =,,[,ind] -- open a network socket # at+s.sockq = -- query socket for pending data
command reference UM1695 10/46 docid025531 rev 5 # at+s.sockc = -- close socket # at+s.sockw =, -- write data to socket # at+s.sockr =, -- read data from socket # at+s.httpd =<0|1> -- disable/enable web server # at+s.httpget =,[,port] -- http get of the given path to the specified host/port # at+s.httppost =,,[,port] -- http post of the given path to the specified host/port # at+s.httpdfserase -- erase the external httpd filesystem # at+s.httpdfsupdate =,[,port] -- download a new httpd filesystem from the specified host/port # at+s.fwupdate =,[,port] -- upgrade the onboard firmware from the specified host/port # at+s.ping = -- send a ping to a specified host ok 2.4 at+s.gcfg: get configuration value at+s.gcfg prints the value of one named configuration variable. see chapter 3: configuration variable reference for a list of available variable s. at&v provides the list of all variables and values on a running module. arguments: example: at+s.gcfg=ip_ipaddr # ip_ipaddr = 192.168.0.50 ok # ip_ipaddr = 192.168.10.10 ok name of the configuration variable name of the configuration variable value to store in the variable
docid025531 rev 5 11/46 UM1695 command reference 46 2.6 at+s.ssidtxt: get/set a textual ssid at+s.ssidtxt is a convenience command th at, when called with no arguments, returns the current value of wifi_ssid a nd wifi_ssid_len configuration va riables as a text string. all non-printable characters are displayed with t he '.' character. when called with an argument, the wifi_ssid and wifi_ssid_len configuration vari ables are set to the specified text string. ieee 802.11 and some access point implementati ons allow ssid values consisting of non- printable octet values, therefore the wifi_ssid va riable is set and stored as a sequence of octets (specified in hexadecimal) and wifi_ssid_len cannot be set based on any given flag value or delimiter. this command is only present as a convenience for those circumstances where the ssid is known to consist of printable characters. note: due to the spwf01sx command parser?s use of the comma ',' character as an argument delimiter, any ssid containing a comma must be set as a sequence of hexadecimal octets using the at+s.scfg command. arguments: example: at+s.ssidtxt=anssid ok at+s.gcfg=wifi_ssid # wifi_ssid = 41:6e:53:53:49:44:00:00:00:00:00:00:00:00:00:00:00:00:00: 00:00:00:00:00:00:00:00:00:00:00:00:00 ok at+s.gcfg=wifi_ssid_len # wifi_ssid_len = 6 ok example: at+s.ssidtxt ssid = 'anssid' ok 2.7 at&v: display all configuration values at&v prints the name and value of all configuration variables in the module. arguments: none example: at&v # dumping all configuration keys: # nv_manuf = st # nv_model = spwf01s # nv_serial = 0813015002 # nv_wifi_macaddr = 00:80:e1:aa:b9:ba # blink_led = 0 textual ssid [1-32 characters]
command reference UM1695 12/46 docid025531 rev 5 # wind_off_low = 0x00000000 # wind_off_medium = 0x00000000 # wind_off_high = 0x00000000 # user_desc = anonymous # escape_seq = at+s. # localecho1 = 0 # console1_speed = 115200 # console1_hwfc = 0 # console1_enabled = 1 # sleep_enabled = 0 # standby_enabled = 0 # standby_time = 10 # wifi_tx_msdu_lifetime = 0 # wifi_rx_msdu_lifetime = 0 # wifi_operational_mode = 0x00000011 # wifi_beacon_wakeup = 1 # wifi_beacon_interval = 100 # wifi_listen_interval = 0 # wifi_rts_threshold = 3000 # wifi_ssid = 53:54:54:65:73:74:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 :00:00:00:00:00:00:00 # wifi_ssid_len = 6 # wifi_txfail_thresh = 5 # wifi_ht_mode = 0 # wifi_channelnum = 6 # wifi_opr_rate_mask = 0x00003fcf # wifi_bas_rate_mask = 0x0000000f # wifi_mode = 1 # wifi_auth_type = 0 # wifi_atim_window = 0 # wifi_powersave = 0 # wifi_tx_power = 18 # wifi_rssi_thresh = 0 # wifi_rssi_hyst = 0 # wifi_ap_idle_timeout = 120 # wifi_beacon_loss_thresh = 10 # wifi_priv_mode = 0 # wifi_wep_keys[0] = 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 # wifi_wep_keys[1] = 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 # wifi_wep_keys[2] = 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 # wifi_wep_keys[3] = 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 # wifi_wep_key_lens = 00:00:00:00 # wifi_wep_default_key = 0
docid025531 rev 5 13/46 UM1695 command reference 46 # wifi_wpa_psk_raw = 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 :00:00:00:00:00:00:00 # wifi_wpa_psk_text = # ip_use_dhcp = 1 # ip_use_httpd = 1 # ip_mtu = 1500 # ip_hostname = iwm-aa-b9-ba # ip_apdomainname = captiveportal.net # ip_apredirect = firstset.html # ip_ipaddr = 192.168.0.50 # ip_netmask = 255.255.255.0 # ip_gw = 192.168.0.1 # ip_dns = 192.168.0.1 # ip_http_get_recv_timeout = 3000 # ip_wait_timeout = 12000 # ip_dhcp_timeout = 20 # ip_sockd_timeout = 250 ok 2.8 at&f: restore facto ry default settings at&f restores the factory default values of t he configuration variables and writes them to non-volatile storage. running this command is mandatory after every fw update. note: to perform the hw factory reset of the va riables, the pin gpio0 must be high during the powerup operation. arguments: none example: at&f ok 2.9 at&w: save current settings at&w stores the current ram-based settings to non-volatile storage. arguments: none example: at&w ok
command reference UM1695 14/46 docid025531 rev 5 2.10 at+s.sts: report cu rrent status/statistics at+s.sts displays the current values of all the status variables. arguments (optional): : displays the current value of the specified variable example: at+s.sts # status & statistics: # version = ******-*******-spwf01s # reset_reason = 4 # conf_flag = 5 # system_uptime = 2083 # system_sleeptime = 0 # gpio_enable = 0 # captiveportal = 0 # wifi_state=10 # wifi_bssid = 00:00:00:00:00:00 # wifi_aid = 0 # wifi_channelnum = 0 # wifi_sup_rate_mask=0x003fffcf # wifi_bas_rate_mask=0x0000000f # wifi_chan_activity2 = 0x00003ffe # wifi_max_tx_power=18 # wifi_reg_country = dk # wifi_dtim_period = 0 # wifi_sleeping = 0 # wifi_num_assoc = 0 # ip_ipaddr = 0.0.0.0 # ip_netmask = 0.0.0.0 # ip_gw = 0.0.0.0 # ip_dns = 0.0.0.0 # ip_sock_open = 0 # ip_sockd_port = 0 # free_heap = 24176 # min_heap = 23088 # current_time = 2083 ok at+s.sts=system_uptime # system_uptime = 7001 ok
docid025531 rev 5 15/46 UM1695 command reference 46 2.11 at+s.peers: dump contents of the peer table at+s.peers displays the current values of the pe er table. these values are useful to know additional information about the module connected to the ap or about the client connected to the module configured in mini ap mode. arguments (optional): : identifier of the peer : displays the current value of the specified peer variable example: at+s.peers - module connected to the ap # size of peer table: 1 # 0.link_id = 0 # 0.state = 4 # 0.addr = 02:62:1f:51:8f:08 # 0.last_rx = 6424 # 0.last_tx = 6379 # 0.rx_drops = 0 # 0.tx_drops = 0 # 0.rx_pkts = 64213 # 0.tx_pkts = 73426 # 0.tx_errs = 5 # 0.rate_mask = 0x00003fcf # 0.cur_rate_idx = 13 # 0.cur_rate_ok = 4 # 0.cur_rate_fail = 0 # 0.tx_consec_fail = 0 # 0.rx_seqnum = 0x0000f510 # 0.rx_seqnum_mc = 0x00004f80 # 0.rx_rssi = -33 # 0.rx_rateidx = 0 # 0.setprot = 3 # 0.listen_interval = 0 # 0.capinfo = 0x00000411 ok at+s.peers=0,rx_rssi # 0.rx_rssi = -33 ok
command reference UM1695 16/46 docid025531 rev 5 2.12 at+s.ping: send a pi ng to a specified host at+s.ping issues a single icmp echo request to the given host. arguments: example: at+s.ping=192.168.1.254 #ping: sendto 192.168.1.254 ok at+s.ping=example.com #ping: sendto 192.0.43.10 ok at+s.ping=nonexistent.example.com error: dns lookup failure at+s.ping=192.168.1.1 #ping: sendto 192.168.1.1 error: timed out 2.13 at+s.sockon: op en a network socket at+s. sockon opens a tcp/udp socket to ?myserver? on port ?xxxx? arguments: : target host. dns resolvable name or ip address : tcp/udp socket port : t for tcp socket, u for udp socket, s for secure socket ind: indicate when data has arrived (optional); this option requires to read the socket when a pending indication message is received. note: - up to 8 tcp or udp sockets can be opened contemporary. in this case it is strictly suggested to immediately empty the buffer (using sockr command) when a pending data is received. - up to 4 consecutive 730 bytes ?pending da ta? messages (w/o sockr) are guaranteed. to prevent data loss, it is suggested to empty the buffer by using the at+s.sockr command and to avoid exceeding 4 indications. - when a socket client receives an indication about socket server gone (only for tcp sockets, wind:58), the socket connection is no t automatically closed. moreover, both for tcp and udp sockets, flushing pending data (using the at+s.read command) is mandatory before closing the socket connecti on (at+s.sockc). if the buffer is not erased, the ?error: pending data? is raised. target host. dns resolvable name or ip address.
docid025531 rev 5 17/46 UM1695 command reference 46 example: at+s.sockon=myserver,1234,t id: 00 ok at+s.sockon=myserver,456,u,ind id: 01 ok 2.14 at+s. sockw: write len bytes of data to socket at+s. sockw allows to write data to socket. th is command accepts data after the at the end of the command line. the host is expected to supply characters of data after the end of the command line. note: when the ok token has not been received is really important to handle properly the error stage. in fact, the "at+sockw" command is not re entrant. if bytes are lost during data transfer over the uart, the module remains in waiting stage for incoming bytes. arguments: : socket identifier : data length to send (in bytes), up to 4096 bytes example: at+s.sockw=00,11 test_socket ok 2.15 at+s.sockq: query pending data at+s.sockq returns the number of bytes of data waiting on socket. arguments: : socket identifier example: at+s.sockq=01 datalen: 12 ok 2.16 at+s. sockr: return len bytes of data from socket at+s. sockr allows to read data from socket. arguments: : socket identifier : data length to read example:
command reference UM1695 18/46 docid025531 rev 5 at+s.sockr=01,12 test_socket1 ok 2.17 at+s.sockc: close socket the sockc command allows to close socket. note: both for tcp and udp sockets, flushing pe nding data (using the at+s.read command) is mandatory before closing the socket connecti on (at+s.sockc). if the buffer is not erased, the ?error: pending data? is raised. arguments: : socket identifier example: at+s.sockc=00 ok 2.18 at+s.tlscert: config ure ssl/tls certificates at+s.tlscert allows to store the certific ates in the flash memory of the module. note: refer to the ssl/tls application note for details arguments: : store the ca certificate, the client certificate or the key file (pem format) : size of the certificate 2.19 at+s.tlscert2: cleanup ss l/tls certificate resources at+s.tlscert2 allows to clean the certific ates in the flash memory of the module. note: refer to the ssl/tls application note for details arguments: : clean the ca certificate, the client certificate, the key file, the server domain or all 2.20 at+s.tlsdomain: set ca doma in name. it must match the secured site name the tlsdomain command allows to store the certification aut hority domain name in the flash memory of the module. note: refer to the ssl/tls application note for details arguments: : store the ca domain in the flash memory : domain name of the certification authority
docid025531 rev 5 19/46 UM1695 command reference 46 2.21 at+s.settime: initia te module reference time the settime command allows to set the re ference time used for secure socket connections. the module reference time must be initialized after each module reset. the time refers to utc format an d must be expressed as the time in seconds since 1970-jan- 01. note: refer to the ssl/tls application note for details arguments: : set the reference time in seconds 2.22 at+s.sockd: enable/dis able the socket server the sockd command enables the socket server listening on incoming connection on the "xxx"port. when the port argument is equal to zero, the command is used to turn off the socket server. arguments: : server listening port (from 1 to 65634, 0 to disable the socket server) t for tcp, u for udp protocol. default is tcp. example: - listening on port 32000 using tcp. at+s.sockd=32000 ok - listening on port 32000 using udp at+s.sockd=32000,u ok - turn off the socket server at+s.sockd=0 ok 2.23 at+s.: command mode to data mode the at+s. command allows switching from command mode to data mode. arguments:
command reference UM1695 20/46 docid025531 rev 5 note: the switch from data mode to command mode switch can be done by using the ?at+s.? escape sequence. this sequence can be customized by using the escape_seq configuration variable. the sequence is case-sensitive and it must be sent in a single complete packet with no cr or lf in the sequence . example: +wind:59:back to command mode at+s. |